package com.daniel.gof.decorator;

/**
 * 详细说明
 *
 * @author Daniel
 * @version V1.0
 * @date 2020/11/19 11:03
 */
public class Client {
    public static void main(String[] args) {
        Beverage blackTea = new GreenTea();
        blackTea = new Lemon(blackTea);
        blackTea = new Mango(blackTea);
        blackTea = new Lemon(blackTea);

        System.out.println(blackTea.getName() + "-->" + blackTea.getPrice());
    }
}
